package com.ruicar.afs.cloud.channel.common.mq.fallback;

import com.ruicar.afs.cloud.common.mq.rabbit.fallback.SendFallBack;
import lombok.extern.slf4j.Slf4j;

/**
 * @author mingzhi.li
 * @Description 佣金系统
 */
@Slf4j
public class ChannelIdToCommissionSystemFallBack implements SendFallBack {

    @Override
    public void errorHandler(int code, String exchange, String routeKey, String message) {
        log.error("mq->发送消息失败\ncode:{}\nexchange:{}\nrouterKey{}\n消息内容:{}", code, exchange, routeKey, message);
    }

    @Override
    public void successHandler(int code, String exchange, String routeKey, String message) {
        log.info("mq->发送消息成功\ncode:{}\nexchange:{}\nrouterKey{}\n消息内容:{}", code, exchange, routeKey, message);
    }
}
